From: cl349@firebug.cl.cam.ac.uk Date: Tue, 13 Sep 2005 15:32:38 +0000 (+0000) Subject: Store dom0 store ring-ref in store. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16806^2~40 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=38d5e48a2a9dd7756274b89d8abefdc512aa7e08;p=xen.git Store dom0 store ring-ref in store. Signed-off-by: Christian Limpach --- diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 88c635aa60..8209ef9588 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -1124,12 +1124,14 @@ class XendDomainInfo: def dom0_init_store(self): if not self.store_channel: self.store_channel = self.eventChannel("store/port") - self.store_mfn = xc.init_store(self.store_channel.port2) - if self.store_mfn >= 0: - IntroduceDomain(self.id, self.store_mfn, self.store_channel.port1, - self.path) - # get run-time value of vcpus and update store - self.exportVCPUSToDB(dom_get(self.id)['vcpus']) + if not self.store_channel: + return + ref = xc.init_store(self.store_channel.port2) + if ref and ref >= 0: + self.setStoreRef(ref) + IntroduceDomain(self.id, ref, self.store_channel.port1, self.path) + # get run-time value of vcpus and update store + self.exportVCPUSToDB(dom_get(self.id)['vcpus']) def vm_field_ignore(vm, config, val, index): """Dummy config field handler used for fields with built-in handling.